package com.hfjava.ebook;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//SpringBoot启动类
@SpringBootApplication
@MapperScan(basePackages = "com.hfjava.ebook.mapper") // 通过使用@MapperScan可以指定要扫描的Mapper类的包的路径
@EnableTransactionManagement // 启注解事务管理
public class EBookApplication {

    public static void main(String[] args) {

        SpringApplication.run(EBookApplication.class, args);

    }

}
